<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link rel="stylesheet" type="text/css" href="styles/pub/default.css" >
  <script type="text/javascript" src="scripts/pub/common.js"></script>
</head>

<body>
<div class="main" style="width:80%;">
	<form name="CIQUserSearch" action="CIQUserSearch.do" method="post">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
			  <caption>
				  CIQ用户管理
			  </caption>
			    <tr>
			      <td>
			        <table border="0" style="width:90%;">
			          <tr>
			            <td width="26%"></td>
			            <td width="20%"></td>
			            <td width="15%"></td>
			            <td ></td>
			          </tr>
			          <tr height="25">
			            <td align="right">登录名</td>
			            <td><input type="text" name="username" value="${map.cuser.username}"></td>
			            <td align="right">部门</td>
			            <td><input type="text" name="department" value="${map.cuser.department}"></td>
			          </tr>
			          <tr class="button">
			            <td colspan="4">
			            	<input type="button" value=" 新 增 " onclick="window.location.href='CIQUserCreate.html'"/>&nbsp;&nbsp;
			            	<input type="submit" value=" 查 询 " />&nbsp;
			              	<input type="button" value=" 清空 " onclick="clearInput();" />
			            </td>
			          </tr>
			        </table>
			      </td>
			    </tr>
			  
			  <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="true"/>
			      </td>
			  </tr>
			  <tbody>
			    <tr>
			      <td align="center">
			        <table class="list" style="width:90%;">
			          <tr class="title">
			            <td width="5%">序号</td>
			            <td width="15%">登录名</td>
			            <td>注册日期</td>
			            <td>部门</td>
			            <td>用户类型</td>
			            <td>邮箱</td>
			            <td>联系电话</td>
			            <td>操作选择</td>
			          </tr>
					<c:forEach items="${map.page.items}" varStatus="stat" var="user">
			          <tr>
			            <td>${stat.count+map.page.seq}</td>
			            <td>${user.username}</td>
			            <td><fmt:formatDate value="${user.regDate}" pattern="yyyy-MM-dd"/> </td>
			            <td>${user.department}</td>
			            <td>
			            	<mytag:c2s type="ciquserType" key="${user.userType}"/>
			            </td>
			            <td>${user.email}</td>
			            <td>${user.telephone}</td>
			            <td>
				            <a class="deco" href="CIQUserEdit.html?id=${user.id}">修改</a>
				            <c:if test="${user.userType!='2'}">
				            	<%-- 
				            	<span style="width:15px;">&nbsp;</span>
				              	<a href="CIQUserDelete.html?id=${user.id}" onclick="return confirmDelete();">删除</a>
				              	--%>
			              		<span style="width:15px;">&nbsp;</span>
				              	<a class="deco" href="CIQUserAuthority.html?id=${user.id}" >权限</a>
				            </c:if>
			            </td>         
			          </tr>
					</c:forEach>
			        </table>
			      </td>
			    </tr>
			  </tbody>
			    <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="false"/>
			      </td>
			    </tr>
			</table>
	</form>
</div>
</body>
</html>
